const initialState = [
    {
        title: '首页',
        path: '/home'
    }
]
export default function reducer(state = initialState, action) {
    const { type, menuName } = action;
    switch (type) {
        case 'SWITCH_MENU':
            return menuName;
        default:
            return state;
    }
}